<?php

class Default_Model_DbTable_SellerInfo extends Zend_Db_Table_Abstract
{

    protected $_name = 'seller_info';


    public function addNewSaler($userID,$title,$info,$logo){
    	$dataInfo = array(
    			"user_id"=>$userID,
    			"title"=>$title,
    			"info"=>$info,
    			"logo"=>$logo
    			);
    	return $this->insert($dataInfo);
    }
    
    public function updateSeller($s_info_id,$title,$info,$logo){
    	$dataInfo = array(
    			"title"=>$title,
    			"info"=>$info,
    			"logo"=>$logo
    			);
    	return $this->update($dataInfo, "seller_info_id = $s_info_id");
    }
}

